package game.engine;

/*  
 * To change this template, choose Tools | Templates  
 * and open the template in the editor.  
 */

import game.state.*;

import org.newdawn.slick.*;
import org.newdawn.slick.state.StateBasedGame;

public class Boomerguy extends StateBasedGame {

	public Boomerguy(String name) {
		super(name);
		this.addState(new MainMenu(StateConstants.menuID));
		this.addState(new Play(StateConstants.playID));
	}

	@Override
	public void initStatesList(GameContainer gc) throws SlickException {
		// these init() calls seem to be handled by app.start() already (they were being called twice, so I commented this out)
		this.enterState(StateConstants.menuID);
	}

	public static void main(String[] arguments) {
		try {
			AppGameContainer app = new AppGameContainer(new Boomerguy("Gravy"));
			app.setDisplayMode(640, 400, false);
			app.start();
		} catch (SlickException e) {
			e.printStackTrace();
		}
	}
}